package com.study.gank.di.component

import com.study.gank.mvp.contract.RandomContract
import com.study.gank.ui.activity.MainActivity
import dagger.Module
import dagger.Provides
import dagger.Subcomponent

@Subcomponent(modules = [RandomModule::class])
interface RandomComponent {
    fun inject(activity: MainActivity)
}

@Module
class RandomModule(private val mView: RandomContract.View) {
    @Provides
    fun provideView() = mView
}
